<%@ page import="aqv.User" %>




<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'login', 'error')} required">
	<label for="login">
		<g:message code="user.login.label" default="Login" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="login" required="" value="${userInstance?.login}"/>

</div>

<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'password', 'error')} required">
	<label for="password">
		<g:message code="user.password.label" default="Password" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="password" required="" value="${userInstance?.password}"/>

</div>

<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'confirm', 'error')} required">
	<label for="password">
		<g:message code="user.confirm.label" default="Confirm" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="confirm" required="" value="${params?.confirm}"/>

</div>



<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'firstName', 'error')} required">
	<label for="firstName">
		<g:message code="user.firstName.label" default="First Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="firstName" required="" value="${userInstance?.firstName}"/>

</div>

<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'lastName', 'error')} required">
	<label for="lastName">
		<g:message code="user.lastName.label" default="Last Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="lastName" required="" value="${userInstance?.lastName}"/>

</div>


<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'email', 'error')} required">
	<label for="email">
		<g:message code="user.email.label" default="Email" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="email" required="" value="${userInstance?.email}"/>

</div>


<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'politicalParty', 'error')} required">
	<label for="politicalParty">
		<g:message code="politician.politicalParty.label" default="Political Party" />
		<span class="required-indicator">*</span>
		<span class="polPartyOnCreateuser">Tu partido politico no esta?Agregalo <a href="${createLink(controller : 'PoliticalParty', action:'create')}">aqui</a></span>
	</label>
	<g:select optionKey="id" optionValue="name" id="politicalParty" name="politicalParty" from="${aqv.PoliticalParty.list()}" required="" value="${politicianInstance?.politicalParty?.name}" class="many-to-one"/>

</div>


<div class="fieldcontain ${hasErrors(bean: userInstance, field: 'politicalPartyRole', 'error')} required">
	<label for="politicalParty">
		<g:message code="politician.politicalPartyRole.label" default="Political Party Role" />
		<span class="required-indicator">*</span>
	</label>
	<g:select optionKey="id" optionValue="tittle" id="politicalPartyRole" name="politicalPartyRole" from="${aqv.PoliticalPartyRole.list()}" required="" class="many-to-one"/>

</div>






